<?php

namespace SisesporteAdmin\Controller;
use SisesporteAdmin\Form\CadastrarServidorForm;
use SisesporteAdmin\Form\AlunoForm;
use SisesporteAdmin\Form\ManterServidorForm;
use SisesporteAdmin\Form\CadastrarAfastamentoForm;
use SisesporteAdmin\Form\CadastrarTerceirizadoForm;
use SisesporteAdmin\Form\LicencaPremioForm;
use SisesporteAdmin\Form\AtestadoComparecimentoForm;
use SisesporteAdmin\Form\AtestadoTresDiasForm;
use SisesporteAdmin\Form\LicencaMedicaForm;
use SisesporteAdmin\Form\AbonoForm;
use Zend\View\Model\ViewModel;

class ServidorController extends CrudController {

    public function __construct() {
        $this->entity = "Sisesporte\Entity\Servidor";
        $this->form = "SisesporteAdmin\Form\TipoTelefoneForm";
        $this->service = "Sisesporte\Service\TipoTelefoneService";
        $this->controller = "servidor";
        $this->route = "sisesporte-admin";
    }

    public function manterServidorAction(){
        $form = new ManterServidorForm(NULL, $this->getEm());
        return new ViewModel(array('form' => $form));
    }
    public function consultaServidorAction(){
        //         $form = new AlunoForm();
        //         return new ViewModel(array('form' => $form));
    }
    public function cadastrarServidorAction(){
        $form = new CadastrarServidorForm(NULL, $this->getEm());
        return new ViewModel(array('form' => $form));
    }
    public function cadastrarAfastamentoAction(){
        $form = new CadastrarAfastamentoForm(NULL, $this->getEm());
        return new ViewModel(array('form' => $form));
    }
    public function cadastrarTerceirizadoAction(){
      $form = new CadastrarTerceirizadoForm(NULL, $this->getEm());
        return new ViewModel(array('form' => $form));
    }
    public function licencaPremioAction(){
        $form = new LicencaPremioForm(NULL, $this->getEm());
        return new ViewModel(array('form' => $form));
    }
    public function atestadoComparecimentoAction(){
        $form = new AtestadoComparecimentoForm(NULL, $this->getEm());
        return new ViewModel(array('form' => $form));
    }
    public function atestadoTresDiasAction(){
        $form = new AtestadoTresDiasForm(NULL, $this->getEm());
        return new ViewModel(array('form' => $form));
    }
    public function licencaMedicaAction(){
        $form = new LicencaMedicaForm(NULL, $this->getEm());
        return new ViewModel(array('form' => $form));
    }
    public function abonoAction(){
        $form = new AbonoForm(NULL, $this->getEm());
        return new ViewModel(array('form' => $form));
    }
}
